package com.javarush.test.level04.lesson06.task01;

import com.sun.org.apache.bcel.internal.generic.IF_ACMPEQ;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * Created by IntelliJ IDEA.
 * User: Andry
 * Date: 03.02.13
 * Time: 0:27
 * To change this template use File | Settings | File Templates.
 */
public class Solution
{
    public static void main(String[] args) throws Exception
    {
        //Напишите тут ваш код
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        String sValue1 = reader.readLine();
        String sValue2 = reader.readLine();

        int value1 = Integer.parseInt(sValue1);
        int value2 = Integer.parseInt(sValue2);

        if (value1 < value2)
            System.out.println(value1);
        else
            System.out.println(value2);
    }
}
